]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
polkit: Improve styling in polkit dialog
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 1 Aug 2012 20:37:31 +0000 (17:37 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 3 Aug 2012 15:22:32 +0000 (12:22 -0300)
Center the "Password:" label, and add a bit more spacing

data/theme/gnome-shell.css
js/ui/polkitAuthenticationAgent.js

index 3c75aead8aaf313db0a4354c6c8ff13ad18970b8..716b40dfbcf80be8be65afe3093ae9e8515ce422 100644 (file)
@@ -1859,12 +1859,8 @@ StButton.popup-menu-item:insensitive {
     color: #666666;
 }
 
-.prompt-dialog-password-label:ltr {
-    padding-right: 0.5em;
-}
-
-.prompt-dialog-password-label:rtl {
-    padding-left: 0.5em;
+.prompt-dialog-password-box {
+    spacing: 1em;
 }
 
 .prompt-dialog-error-label {
index 982b0f8c7569b2a3ccd68ba2d032eebabec51919..0f374a3beaf8cee8770de97d6beee8e5539b4f14 100644 (file)
@@ -135,17 +135,17 @@ const AuthenticationDialog = new Lang.Class({
 
         this._onUserChanged();
 
-        this._passwordBox = new St.BoxLayout({ vertical: false });
+        this._passwordBox = new St.BoxLayout({ vertical: false, style_class: 'prompt-dialog-password-box' });
         messageBox.add(this._passwordBox);
         this._passwordLabel = new St.Label(({ style_class: 'prompt-dialog-password-label' }));
-        this._passwordBox.add(this._passwordLabel);
+        this._passwordBox.add(this._passwordLabel, { y_fill: false, y_align: St.Align.MIDDLE });
         this._passwordEntry = new St.Entry({ style_class: 'prompt-dialog-password-entry',
                                              text: "",
                                              can_focus: true});
         ShellEntry.addContextMenu(this._passwordEntry, { isPassword: true });
         this._passwordEntry.clutter_text.connect('activate', Lang.bind(this, this._onEntryActivate));
         this._passwordBox.add(this._passwordEntry,
-                              {expand: true });
+                              { expand: true });
         this.setInitialKeyFocus(this._passwordEntry);
         this._passwordBox.hide();